package cn.kmsoft.jssc.entity.analyse;

import java.io.Serializable;

/**
 * 分析点名称
 *
 * @author : cqwensten
 * @description : todo
 * @email : cqwensten@163.com
 * @date : 2023/2/17
 */
public class AnalysePoint implements Serializable {
    private String code;//分析点名称
    private String featureCode;//要素特征码
    private String processor;//处理器Code代码
    private String label;//中文名称
    private String readme;//分析点功能说明
    private String defaultYear;//默认分析的年份

    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }

    public String getFeatureCode() {
        return featureCode;
    }
    public void setFeatureCode(String featureCode) {
        this.featureCode = featureCode;
    }

    public String getProcessor() {
        return processor;
    }
    public void setProcessor(String processor) {
        this.processor = processor;
    }

    public String getLabel() {
        return label;
    }
    public void setLabel(String label) {
        this.label = label;
    }

    public String getReadme() {
        return readme;
    }
    public void setReadme(String readme) {
        this.readme = readme;
    }

    public String getDefaultYear() {
        return defaultYear;
    }
    public void setDefaultYear(String defaultYear) {
        this.defaultYear = defaultYear;
    }

    @Override
    public String toString() {
        return "AnalysePoint{" +
                "code='" + code + '\'' +
                ", label='" + label + '\'' +
                ", defaultYear='" + defaultYear + '\'' +
                ", readme='" + readme + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object obj) {
        if( !(obj instanceof AnalysePoint)) {
            return false;
        }
        //地址相等
        AnalysePoint analysePoint = (AnalysePoint) obj;
        //根据code进行判断
        if (analysePoint.getCode().equalsIgnoreCase(this.code) ) {
            return true;
        } else {
            return false;
        }
    }
}
